package day0910.demo1;

import day0910.demo1.Animal;

/**
 * @Author:galaxy_yan
 * @Date: 2022/9/10
 * @Time: 16:29
 * @Description
 */
public class Dog extends Animal {
    public Dog(String name, int age) {
        super(name, age);
    }

    public void eat(){
        System.out.println("小狗"+name+"在吃狗粮");
    }
    public void back(){
        System.out.println("小狗"+name+"在汪汪叫");
    }
}
